using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Reflection;

namespace DTO
{
    /// <summary> 
    ///Author: nnamthach@gmail.com 
    /// <summary>

    public class OpRtuInfo : DTOInfo
    {
        #region Local Variable
        public class Field
        {
            public const string
                XuongId = "XuongId"
                , ComId = "ComId"
                , LineId = "LineId"
                , RtuID = "RtuID"
                , LenhSX = "LenhSX"
                , NguoiTH = "NguoiTH"
                , DonVi = "DonVi"
            ;
        }
        private String _XuongId;
        private Int32? _ComId;
        private Int32? _LineId;
        private Int32? _RtuID;
        private String _LenhSX;
        private String _NguoiTH;
        private Int32? _DonVi;

        public String XuongId { get { return _XuongId; } set { _XuongId = value; } }
        public Int32? ComId { get { return _ComId; } set { _ComId = value; } }
        public Int32? LineId { get { return _LineId; } set { _LineId = value; } }
        public Int32? RtuID { get { return _RtuID; } set { _RtuID = value; } }
        public String LenhSX { get { return _LenhSX; } set { _LenhSX = value; } }
        public String NguoiTH { get { return _NguoiTH; } set { _NguoiTH = value; } }
        public Int32? DonVi { get { return _DonVi; } set { _DonVi = value; } }

        #endregion LocalVariable

        #region Constructor
        public OpRtuInfo() { }
        public OpRtuInfo(String XuongId, Int32 ComId, Int32 LineId, Int32 RtuID, String LenhSX, String NguoiTH, Int32 DonVi)
        {
            _XuongId = XuongId;
            _ComId = ComId;
            _LineId = LineId;
            _RtuID = RtuID;
            _LenhSX = LenhSX;
            _NguoiTH = NguoiTH;
            _DonVi = DonVi;
        }
        public OpRtuInfo(DataRow dr)
        {
            LoadDataRow(dr);
        }

        public OpRtuInfo(DataRowView dr) : this(dr.Row) { }

        public OpRtuInfo(OpRtuInfo objEntr) : base(objEntr) { }
        #endregion Constructor

        

    }
}
